package org.farec.tcc.hibernate.teste;

import org.farec.tcc.modelo.Cilindrada;
import org.farec.tcc.modelo.Cliente;
import org.farec.tcc.modelo.Fabricante;
import org.farec.tcc.modelo.Fornecedor;
import org.farec.tcc.modelo.Mecanico;
import org.farec.tcc.modelo.ModeloVeiculo;
import org.farec.tcc.modelo.OrdemServico;
import org.farec.tcc.modelo.Placa;
import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public class GeraClasse {
	
	public static void main(String [] args)
	{
		AnnotationConfiguration cfg = new AnnotationConfiguration();
		
		//cfg.addAnnotatedClass(Cilindrada.class);
		//cfg.addAnnotatedClass(Cliente.class);
		//cfg.addAnnotatedClass(Fabricante.class);
		//cfg.addAnnotatedClass(Fornecedor.class);
		//cfg.addAnnotatedClass(Mecanico.class);
		//cfg.addAnnotatedClass(ModeloVeiculo.class);
		//cfg.addAnnotatedClass(OrdemServico.class);
		//cfg.addAnnotatedClass(Placa.class);
		
		SchemaExport ex = new SchemaExport(cfg);
		
		ex.create(true, true);
		System.out.println("TESTE");
	}

}
